export class Pass {
  constructor (scene) {
    this.name = undefined
    this.stage = undefined
    this.scene = scene
    this.postStages = scene.postProcessStages
  }

  createStage () {

  }
}

Pass.prototype.render = function () {
  if (!this.stage) {
    this.createStage()
  }
  this.postStages.add(this.stage)
}

Pass.prototype.destroy = function () {
  if (this.stage) {
    this.postStages.remove(this.stage)
    this.stage = undefined
  }
}
